package com.woniuxy.mesboot.service.impl;

import com.woniuxy.mesboot.dto.OperInspDTO;
import com.woniuxy.mesboot.entity.MesOperationInspection;
import com.woniuxy.mesboot.mapper.MesOperationInspectionMapper;
import com.woniuxy.mesboot.mapper.MesProcessDetailsMapper;
import com.woniuxy.mesboot.service.OperationInspectionService;

import com.woniuxy.mesboot.vo.OperInspVO;


import com.woniuxy.mesboot.vo.ProDetailsVO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class OperationInspectionServiceImpl implements OperationInspectionService {
    @Resource
    private MesOperationInspectionMapper operationInspectionMapper;


    @Override
    public List<ProDetailsVO> selectDetail(Integer operationProcedureId) {
        return operationInspectionMapper.selectContent(operationProcedureId);
    }

    @Override
    public List<OperInspVO> selectAll(OperInspDTO inspDTO) {
        return operationInspectionMapper.selectAll(inspDTO);
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return operationInspectionMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(MesOperationInspection record) {
        return operationInspectionMapper.insert(record);
    }

    @Override
    public int insertSelective(MesOperationInspection record) {
        return operationInspectionMapper.insertSelective(record);
    }

    @Override
    public MesOperationInspection selectByPrimaryKey(Long id) {
        return operationInspectionMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(MesOperationInspection record) {
        return operationInspectionMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(MesOperationInspection record) {
        return operationInspectionMapper.updateByPrimaryKey(record);
    }
}
